
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Pipe({
  name: 'rTrustHtml'
})

/**
 * 公司：xxx有限公司
 * 版权：xxx2020
 * 描述：安全的html片段
 * 作者：oyjl
 * 时间：2020-03-05 13:15:34
 */
export class RTrustHtmlPipe implements PipeTransform {
  constructor(public sanitizer: DomSanitizer) { }
  transform(value: any): any {
    return this.sanitizer.bypassSecurityTrustHtml(value);
  }
}
